﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////

#pragma once

#include "GcmpModelInterface.h"
#include "NotificationTypes_gen.h"
#include "INotification.h"

namespace gcmp
{
    class GCMP_MODEL_INTERFACE_EXPORT NotificationUtils
    {

    public:
        // 发送弱提示。type - 弱提示类型。text - 弱提示文本内容。 detailItems - 可选参数，如果不为空，则显示“查看详情”。
        static const bool PostNotification(NotificationTypes type, const std::wstring& text, std::vector<OwnerPtr<INotificationDetailItem>> detailItems = std::vector<OwnerPtr<INotificationDetailItem>>());
        static const INotification* GetLastNotification();
    };
}


